package com.zengqingfa.controller;

import com.zengqingfa.config.HelloProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zengqingfa
 * @className HelloController
 * @description
 * @create 2022/6/14 21:57
 */
@RestController
public class HelloController {

    HelloProperties helloProperties;

    public HelloController(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    @RequestMapping("/hello")
    public String hello() {
        return "hello," + helloProperties.getName();
    }
}